package com.pearl.modules.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Demo类
 *
 * @author yaobin-yue
 * @date 2022/5/9
 */
@Controller
@RequestMapping("/demo")
public class DemoController {

    /***
     * 测试
     * @param model
     * @return
     */
    @RequestMapping("/hello")
    public String hello(Model model) {
        model.addAttribute("content", "欢迎进入Demo页面");
        return "demo";
    }

}
